﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>个人中心 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="../../_data/json/_systemcount.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="{site.Dir}style/global.css" />
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<style type="text/css">
@import url({site.Dir}user/otherfiles/css/style.css);
</style>
<script type="text/javascript">
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		site.Dir + "ajax/user.aspx?oper=ajaxUserInfo",
			error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
			success:	function(data){
				//数据绑定
				$(".index_name").html(data.username+"（"+data.groupname+"）");
				$(".u_points").text(data.points);
				$("#u_myface").attr("src","{site.Dir}avatar/"+data.userid+"_l.jpg?" + (new Date().getTime()));
				$(".u_email").text(data.email);
				if(data.sex=="2")
					$(".u_sex").text("女");
				if(data.sex=="0")
					$(".u_sex").text("保密");
				if(data.isvip=="1")
					$(".u_vipdate").text("VIP有效期："+data.vipdate);
			}
		});
		//数据统计
		for (i=0;i < $$_JSON_SystemCount.table.length;i++) {
			$("#content_" + $$_JSON_SystemCount.table[i].channelid+"_" + $$_JSON_SystemCount.table[i].classid).html($$_JSON_SystemCount.table[i].contentcount);
		}  
		ajaxTopFriendList();
	});
})();
function ajaxTopFriendList()
{
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page=1&pagesize=6&time="+(new Date().getTime()),
		url:		site.Dir + "user/friendlist/ajax.aspx?oper=ajaxGetList",
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxTopFriendList").setTemplateElement("tplRightMenu", null, {filter_data: false});
				$("#ajaxTopFriendList").processTemplate(d);
				break;
			}
		}
	});
}
</script>
<script type="text/javascript" src="{site.Dir}user/otherfiles/scripts/ajax.js"></script>
</head>
<body>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li><img src="{site.Dir}user/otherfiles/image/writer_v2/user_home.gif"><a href="{site.Dir}user/index/index.aspx">用户管理中心</a></li>
				<li class="hr"></li>
				<li id="customer" class="bold currently"><img src="{site.Dir}user/otherfiles/image/writer_v2/member.gif"><a href="{site.Dir}customer/index/index.aspx?mod=customer">我是会员</a><em></em></li>
				<li class="small"><a href="{site.Dir}customer/consume/index.aspx?mod=customer">我的消费明细</a></li>
				<li class="small"><a href="{site.Dir}customer/applylist/index.aspx?mod=customer">我的申请单</a></li>
				<li class="small"><a href="{site.Dir}customer/buypoints/index.aspx?mod=customer">我要购买点数</a></li>
				<li class="small"><a href="{site.Dir}customer/activepointscard/index.aspx?mod=customer">我要激活点卡</a></li>
				<li class="small"><a href="{site.Dir}customer/vipapply/index.aspx?mod=customer">我要申请包年</a></li>
			</ul>
		</div>
		<div id="mainarea">
			<div id="content">
				<div class="composer_header">
					<div style="float:left;width:137px;">
						<div class="ar_r_t">
							<div class="ar_l_t">
								<div class="ar_r_b">
									<div class="ar_l_b"><img id="u_myface" src="{site.Dir}avatar/0_l.jpg" onerror="this.src='{site.Dir}avatar/0_l.jpg'" width="120" height="120" /></div>
								</div>
							</div>
						</div>
					</div>
					<div class="composer" style="float:left">
						<h3 class="index_name">username</h3>
						<p>绑定邮箱：<span class="u_email"></span></p>
						<p>当前账户 <span class="u_points">0</span> 点</p>
						<p><span class="u_vipdate" style="color:red;"></span></p>
					</div>
				</div>
				<div class="clear"></div>
				<div class="nav_two">
					<ul>
						<li><a>用户等级说明</a></li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="inportant_remind">
					<ul>
						<li><span class="b">游客：</span><span>可浏览本站防务动态、研究项目及其它无需注册频道信息，并可下载军事科学资料（免费版）及本站出版物免费版。</span></li>
						<li><span class="b">普通用户：</span><span>除拥有游客权限外，可浏览并下载本站的“外军期刊数据库”中所有杂志期刊。可通过<a href="{site.Dir}customer/buypoints/index.aspx?mod=customer" target="_top">购买点数</a>升级到银卡会员。</span></li>
						<li><span class="b">银卡用户：</span><span>除拥有普通会员的权限外，根据每篇防务译文、防务报告、收费期刊等提示的应扣点数下载资料（注：重复下载不会重复扣分），并可免费浏览并下载本站的“防务公司数据库”。</span></li>
						<li><span class="b">金卡用户：</span><span>在VIP有效期内，可浏览下载本站所有文章。普通用户可通过<a href="{site.Dir}customer/vipapply/index.aspx?mod=customer" target="_top">申请包年</a>升级到金卡用户。</span></li>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<!--/content-->
			<div id="sidebar">
				<div class="searchfirend">
					<h3>数据统计</h3>
						<p>&nbsp;&nbsp;&nbsp;&nbsp;在研项目: <span style="color:red;" id="content_5_88">0</span></p>
						<p>&nbsp;&nbsp;&nbsp;&nbsp;防务报告: <span style="color:red;" id="content_20_0">0</span></p>
						<p>&nbsp;&nbsp;&nbsp;&nbsp;防务译文: <span style="color:red;" id="content_8_0">0</span></p>
						<p>&nbsp;&nbsp;&nbsp;&nbsp;美军条例: <span style="color:red;" id="content_21_0">0</span></p>
						<p>&nbsp;&nbsp;&nbsp;&nbsp;军事专题: <span style="color:red;" id="content_14_0">0</span></p>
				</div>
 				<div class="sidebox">
					<h2 class="title">
						<p class="r_option"> <a href="{site.Dir}user/friendlist/index.aspx">全部</a> </p>
						我的好友 </h2>
                    <textarea id="tplRightMenu" style="display:none">{#foreach $T.table as record}
<li>
	<div class="avatar48"><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}"><img src="{site.Dir}avatar/{$T.record.frienduserid}_m.jpg" onerror="this.src='{site.Dir}avatar/0_m.jpg'" alt="{$T.record.friendusername}" width="48" height="48" /></a></div>
	<p><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}">{$T.record.friendusername}</a></p>
</li>
{#/for}</textarea>
					<ul class="avatar_list" id="ajaxTopFriendList">
					</ul>
				</div>
			</div>
		</div>
		<div id="bottom"></div>
	</div>
	<div id="footer" title=""> </div>
</div>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
